package com.weixinli.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.weixinli.beans.Mood;
import com.weixinli.biz.IMoodBiz;
import com.weixinli.dao.IMoodDao;

@Scope("prototype")
@Service("iMoodBiz")
public class MoodBizImpl implements IMoodBiz {
	@Resource(name="iMoodDao")
	private IMoodDao moodDao;
	
	public int addMood(Mood mood) {
		return moodDao.addMood(mood);
	}

	public int delMood(Integer mid) {
		return 0;
	}

	public List<Mood> getTotalMood() {
		return moodDao.getTotalMood();
	}

	public Mood findOneMood(Integer mid) {
		return moodDao.findOneMood(mid);
	}

	public List<Mood> findFriendMood(Integer w_uid) {
		return moodDao.findFriendMood(w_uid);
	}

	public List<Mood> findMoodByTag(String tag) {
		return moodDao.findMoodByTag(tag);
	}

}
